#include"udp_server.hpp"
void Usage(string proc)
{
    cout<<"Usage"<<proc<<"server port"<<endl;
}
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
    }
    UdpServer* server=new UdpServer(atoi(argv[1]));//atoi()字符串转为整型
    server->initServer();
    server->start();
    return 0;
}